<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>检测变量是否为数字或数字字符串</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.is-null.html">is_null</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.is-object.html">is_object</a></div>
 <div class="up"><a href="ref.var.html">Variable handling 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.is-numeric" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">is_numeric</h1>
    <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">is_numeric</span> &mdash; <span class="dc-title">
     检测变量是否为数字或数字字符串
    </span></p>

   </div>
   <div class="refsect1 unknown-unknown-unknown-unknown-unknown-unknown-unknown-seealsv" id="refsect1-function.is-numeric-unknown-unknown-unknown-unknown-unknown-unknown-unknown-seealsv">
    <h3 class="title">描述</h3>
     <div class="methodsynopsis dc-description">
      <span class="type">bool</span> <span class="methodname"><strong>is_numeric</strong></span>
       ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$var</code></span>
      )</div>

    <p class="para rdfs-comment">
     如果 <em><code class="parameter">var</code></em> 是数字和数字字符串则返回 <strong><code>TRUE</code></strong>，否则返回 <strong><code>FALSE</code></strong>。
    </p>
    <p class="para">
     参见
     <span class="function"><a href="function.is-bool.html" class="function">is_bool()</a></span>、<span class="function"><a href="function.is-float.html" class="function">is_float()</a></span>、<span class="function"><a href="function.is-int.html" class="function">is_int()</a></span>、<span class="function"><a href="function.is-string.html" class="function">is_string()</a></span>、<span class="function"><a href="function.is-object.html" class="function">is_object()</a></span>、<span class="function"><a href="function.is-array.html" class="function">is_array()</a></span>
     和 <span class="function"><a href="function.is-integer.html" class="function">is_integer()</a></span>。
    </p>
   </div>

  </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.is-null.html">is_null</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.is-object.html">is_object</a></div>
 <div class="up"><a href="ref.var.html">Variable handling 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
